import json


def read_info(filename='data/login_data.json'):
    temp_list = []
    with open(filename, 'r', encoding='utf-8') as f:
        # 读取json内容
        content = json.load(f)
        # print(content)
        for temp_dict in content:
            # print(tuple(temp_dict.values()))
            temp_list.append(tuple(temp_dict.values()))

    return temp_list


def get_url(key, filename='./data/urls.json'):
    with open(filename, 'r', encoding='utf-8') as f:
        # 读取json内容
        content = json.load(f)

    return content.get(key)


if __name__ == '__main__':
    ret = read_info()
    print(ret)

